package main

import (
	"github.com/gogap/logs"
	"yundian/internel/app/helper/request"
	"yundian/internel/app/logic"
	"yundian/internel/pkg/dbs"
	"yundian/internel/pkg/dingo"
)

func main() {
	dingo.InitViper("./configs/zhongman.yaml")
	dbs.NewMysqlComponent().Step()
	dbs.NewRedisComponent().Step()

	param := &request.SendPlacePushDataReq{}
	param.ProjectLabel = "hotel_jj"
	//param.Month = "2022-09"
	//param.Month = "2022-10"
	param.Month = "2023-01"

	if err := logic.NewTaskLogic().GPPConsignmentCreationByZm(param); err != nil {
		logs.Info("推送失败")
	}

	//if err := logic.NewTaskLogic().GPPConsignmentCreation(param); err != nil {
	//	logs.Info("推送失败")
	//}

	logs.Info("推送成功")
}
